<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------
namespace app\video\behavior\common;

/**
 * 提交智能审核
 * @package app\video\behavior\common
 * @author jason wang
 */
class checkPlayIdStatus{
    /**
     * 执行行为 run方法是Behavior唯一的接口
     * @access public
     * @return void
     */
    public function run($params){
    	$play_id 	= $params['play_id'];//艺人id

		$rel = model('video/VideoPlay', 'model') -> find($play_id);
		if(!$rel || !$rel->play_status){
			return 'play_id无效或视频被禁用';
		}else{
			return true;
		}
		 
    }
}
